Additionally to the syntax
described in the previous chapter, it is possible to use a
URL-like syntax for tramp. This can be
switched on by customizing the variable
tramp-syntax. Please note that this feature is
experimental for the time being.
The variable tramp-syntax must be set before
requiring tramp:
(setq tramp-syntax 'url)
(require 'tramp)
Then, a tramp filename would look like this: /method://user@machine:port/path/to.file. /method:// is mandatory, all other parts are optional. :port is useful for methods only who support this.
The last example from the previous section would look like this: /ssh://daniel@melancholia/.emacs.
For the time being, tramp-syntax can have the
following values:
ftp – That is the default syntaxurl – URL-like syntax